<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>add.ejs</title>
        <link rel="stylesheet" href="/public/css/base.css" />
        <link rel="stylesheet" href="/public/css/index.css" />
        <style>
            form {
                width: 500px;
                margin: 0 auto;
                font-size: 18px;
                line-height: 40px;
                text-align: center;
            }

            form .item-box {
                padding-top: 15px;
                box-sizing: border-box;
                -webkit-box-sizing: border-box;
            }

            form .title {
                width: 350px;
                height: 40px;
                line-height: 40px;
            }

            form button {
                display: inline-block;
                width: 100px;
                height: 40px;
                background-color: #ccc;
                color: #fff;
                margin: 15px 0;
            }
        </style>
    </head>

    <body>
        <div class="todoapp">
            <header>
                <h1><%= todoTitle %></h1>
            </header>
            <section>
                <form action="/task/add" method="post">
                    <div class="item-box">
                        新任务：<input type="text" name="title" class="title" /><br />
                    </div>
                    <button>新增</button>
                </form>
            </section>
        </div>
    </body>

</html>